i=input("input your number:")
i=int(i)
sum=1
while(i>0):
    sum*=i
    i-=1


print(sum)